package com.zhouyu;

import com.zhouyu.interfacer.faceATest;
import com.zhouyu.service.UserService;
import org.jetbrains.annotations.TestOnly;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

public class Test {

	public static void main(String[] args) {

//		new ClassPathXmlApplicationContext("spring.xml");
//		new XmlWebApplicationContext()

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

		UserService userService = (UserService) context.getBean("userService");
//		userService.test();

		userService.testJdbc();
	}
}
